﻿using System.Collections.Generic;
using System.Threading.Tasks;
using zhangmenren.Db;
using zhangmenren.Models;
using zhangmenren.Models.ViewModle;
using zhangmenren.ViewModel;

namespace zhangmenren.IService
{
	public interface IOrderService : IDependency
	{
		Task<int> Add(OrderEntity entity);

		Task<int> Payed(string orderId);

        Task<int> Del(string orderId);

        Task<IEnumerable<OrderEntity>> Select(int index, string key);

        Task<IEnumerable<OrderModel>> Select(int index,int lim, string key);

        Task<OrderEntity> FindById(string  orderid);

        Task<IEnumerable<OrderEntity>> FindByWorkId(int workId);

        Task<IEnumerable<WorksModel>> FindByUserId(int userId);
    }
}
